{php include wl_template('common/header');}
<script type="text/javascript" src="{URL_WEB_JS}diyarea.js"></script>
<style>
    #memberInfo .form-group{
        margin-bottom: 10px!important;
    }
    #memberInfo .img-photo{
        max-width: 150px;
        max-height: 150px;
        float:left;
        margin:2px;
    }
    #memberInfo video{
        height: 300px!important;
        width: auto!important;
        border: 1px solid #ddd;
        padding: 5px;
    }
    .margin-r-5{
        margin-right: 5px;
    }
</style>
<ul class="nav nav-tabs" id="myTab">
    <li class="active"><a href="#tab_basic">标签编辑</a></li>
</ul>
<div class="app-content">
    <div class="app-form" id="memberInfo">
        <form class="form-horizontal form form-validate" method="post">
            <div class="tab-content">
                <!-- 基本信息 -->
                <div class="tab-pane active" id="tab_basic">
                    <div class="panel panel-default">
                        <div class="panel-heading">标签编辑</div>
                        <div class="panel-body">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">标签标题<span class="form-must">*</span></label>
                                <div class="col-sm-9">
                                    <input class="form-control" type="text" name="info[title]" value="{$info['title']}"  />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">标签图标</label>
                                <div class="col-sm-9">
                                    {php echo attachment_select('info[image]', $info['image'])}
                                    <span class="help-block">建议使用正方形图片</span>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">类型</label>
                                <div class="col-sm-9">
                                    <select name="info[type]" class="form-control">
                                        <option value="1" {if $info['type'] == 1}selected{/if}>房间设施</option>
                                        <option value="2" {if $info['type'] == 2}selected{/if}>房间服务</option>
                                        <option value="3" {if $info['type'] == 3}selected{/if}>酒店服务</option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">排序</label>
                                <div class="col-sm-9">
                                    <input class="form-control"  type="number" min="0"  name="info[sort]" value="{$info['sort']}"  />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-9">
                    <input type="submit" name="submit" value="提交" class="btn btn-primary min-width" />
                    <input type="hidden" name="token" value="{$_W['token']}" />
                    <input type="hidden" name="id" value="{$_GPC['id']}" />

                    <a href="{php echo web_url('house/House/labelList')}" class="btn btn-danger min-width margin-r-5">返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
{php include wl_template('common/footer');}
